import axios from '~/axios'
export function getImageClassList(page){
    return axios.get('/admin/image_class/'+page)
}

export function createImageClass(data){
    return axios.post('/admin/image_class',data)
}

//需要修改的body的data参数
export function updateImageClass(id,data){
    return axios.post('/admin/image_class/'+id,data)
}

export function delectImageClass(id){
    return axios.post(`/admin/image_class/${id}/delete`)
}